package com.vickw.springcloud.service.impl;

import com.vickw.springcloud.dao.PaymentDao;
import com.vickw.springcloud.entity.Payment;
import com.vickw.springcloud.service.IPaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @Description：
 * @Author VickW
 * @Date 2022/2/17 21:03
 */
@Service
public class PaymentServiceImpl implements IPaymentService {
    @Autowired
    private PaymentDao paymentDao;

    public int creatPayment(Payment payment){
        return paymentDao.creatPayment(payment);
    }

    public Payment getPaymentById(@Param("id") Long id){
        return paymentDao.getPaymentById(id);
    }
}
